package com.bbs.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class MyUtil {
    public static String createActivateCode() {
        return UUID.randomUUID().toString().replace("-","");
    }

    public static String formatDate(Date date) {
        SimpleDateFormat sformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//日期格式
        return sformat.format(date);
    }
}
